function [ d ] = str2dom( str )
%STR2NODE Summary of this function goes here
%   Detailed explanation goes here
import java.io.StringReader;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;

import org.w3c.dom.Document;
import org.xml.sax.InputSource;
try
    factory = DocumentBuilderFactory.newInstance();
    builder = factory.newDocumentBuilder();
    is = InputSource( StringReader( str ) );
    d = builder.parse( is );
catch ex
    ex.printStackTrace();
end

